package com.bainc.web.shared.types;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ContactInfo implements IsSerializable {
	private String primaryEmailId = "";
	private String secondaryEmailId = "";
	private Long phoneNumber = 0L;
	private Address address = new Address();
	
	public ContactInfo() {
	}
	
	public ContactInfo(String primaryEmailId) {
		this.setPrimaryEmailId(primaryEmailId);
	}

	public void setPrimaryEmailId(String primaryEmailId) {
		this.primaryEmailId = primaryEmailId;
	}

	public String getPrimaryEmailId() {
		return primaryEmailId;
	}

	public void setSecondaryEmailId(String secondaryEmailId) {
		this.secondaryEmailId = secondaryEmailId;
	}

	public String getSecondaryEmailId() {
		return secondaryEmailId;
	}

	public void setPhoneNumber(Long phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Long getPhoneNumber() {
		return phoneNumber;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public Address getAddress() {
		return address;
	}
	
	public String toString() {
		String summary = primaryEmailId + ", "
				+ secondaryEmailId + ", "
				+ phoneNumber + ", "
				+ address;
		return summary;
	}
}
